package com.byton.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description:
 *
 * @Author byteon (liyong98k@163.com)
 * @Create 2025-04-09 14:23
 */
@FeignClient(value = "service-weather", url = "http://aliv18.data.moji.com")
public interface WeatherFeignClient {


    // 调用第三方 服务端负载均衡
    @PostMapping("/whapi/json/alicityweather/condition")
    String getWeather(@RequestHeader("Authorization") String auth,
                    @RequestParam("token") String token,
                    @RequestParam("cityId") String cityId);
}
